{template header}

<div class="container">




    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-8">


            <div class="panel panel-default">
                <div class="panel-body">


                    <div class="s_menu">
                        <a {if $ts==''}class="s_select"{/if} href="{tsUrl('search')}">全部</a> |
                        <a {if $ts=='group'}class="s_select"{/if} href="{tsUrl('search','index',array(ts=>group))}">小组</a> |
                        <a {if $ts=='user'}class="s_select"{/if} href="{tsUrl('search','index',array(ts=>user))}">用户</a> |
                        <a {if $ts=='article'}class="s_select"{/if} href="{tsUrl('search','index',array(ts=>article))}">文档</a>
                    </div>



                    <div style="overflow: hidden;">
                        <form method="GET" action="{SITE_URL}index.php">
                            <input type="hidden" name="app" value="search" />
                            <input type="hidden" name="ac" value="s" />

                            {if $ts=='group'}
                            <input type="hidden" name="ts" value="group" />
                            {elseif $ts=='topic'}
                            <input type="hidden" name="ts" value="topic" />
                            {elseif $ts=='user'}
                            <input type="hidden" name="ts" value="user" />
                            {elseif $ts=='article'}
                            <input type="hidden" name="ts" value="article" />
                            {else}
                            {/if}

                            <input style="float: left;width:70%" class="form-control" name="kw" x-webkit-speech />
                            <button style="float: left;margin-left:10px;max-width: 20%;" class="btn btn-success" type="submit">搜索</button>

                        </form>
                    </div>


                </div>
            </div>


        </div>
        <div class="col-md-2"></div>
    </div>






</div>


{template footer}